package com.tca.spring.framework.learning.ioc;

import com.tca.spring.framework.learning.ioc.beans.Student;
import com.tca.spring.framework.learning.ioc.config.MainConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author zhoua
 * @Date 2021/5/9
 */
public class MainStarter {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(MainConfig.class);
        Student bean = applicationContext.getBean(Student.class);

    }
}
